<template>
  <div class="services-view">
    <h1>服务页面</h1>
    <p>我们提供全方位的服务，满足您的各种需求。</p>
    <div class="services-list">
      <div class="service-item" v-for="service in services" :key="service.id">
        <div class="service-icon">{{ service.icon }}</div>
        <div class="service-content">
          <h3>{{ service.title }}</h3>
          <p>{{ service.description }}</p>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue';

// 模拟服务数据
const services = ref([
  { id: 1, icon: '🔧', title: '技术支持', description: '提供24/7全天候技术支持，解决您在使用过程中遇到的任何问题。' },
  { id: 2, icon: '📞', title: '咨询服务', description: '专业团队为您提供个性化的咨询服务，帮助您做出最佳决策。' },
  { id: 3, icon: '🚀', title: '快速部署', description: '高效的部署流程，确保您的系统快速上线并稳定运行。' },
  { id: 4, icon: '📊', title: '数据分析', description: '深入的数据分析服务，帮助您从数据中获取有价值的洞察。' },
  { id: 5, icon: '🔒', title: '安全保障', description: '全方位的安全解决方案，保护您的数据和系统安全。' },
]);
</script>

<style scoped>
.services-view {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

.services-view h1 {
  margin-bottom: 20px;
  color: #333;
}

.services-list {
  margin-top: 30px;
}

.service-item {
  display: flex;
  gap: 20px;
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.service-icon {
  font-size: 40px;
  flex-shrink: 0;
  margin-top: 4px;
}

.service-content h3 {
  margin: 0 0 8px 0;
  color: #333;
}

.service-content p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .service-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .service-icon {
    margin-bottom: 16px;
  }
}
</style>